<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;

class UserInfo extends Model
{
    use  Notifiable;
    use SoftDeletes;
    protected $table = 'user_infos';
    //
    protected $fillable = [
        'name', 'mobile','uid','desc','gender','political_outlook'
    ];
    protected $rules = [
        'name' => 'required|max:20',
        'mobile'=>'required|max:11|string'
    ];


    protected $validationMessages = [
        'name.required' => '姓名必填',
        'name.max' => '姓名长度不得超过20个字符',
    ];

    //
}
